package test_junit_shop;

import org.openqa.selenium.By;
import util.BaseDriver;


/**
 * Created by CYH on 2018/2/05.
 * 门店-销售收银-商品销售-退换货管理-查看详情
 */

public class ExchangeGoods extends BaseDriver{

    private static ExchangeGoods instance=new ExchangeGoods();
    private ExchangeGoods(){}

    public static ExchangeGoods getInstance(){
        return instance;
    }

    public void detail() throws InterruptedException {
        Thread.sleep(1000);
        driver=driver.switchTo().frame(2);
        driver.findElement(By.name("btSelectItem")).click();
        driver.findElement(By.xpath("(//button[@type='button'])[2]")).click();

        Thread.sleep(3000);
        driver=driver.switchTo().frame(0);
        driver.findElement(By.id("ok_btn")).click();
    }



}
